package com.neuedu.web.po;


import java.io.Serializable;

/**
 * 开立检验请
 * @TableName inspect_apply
 */
public class InspectApplyPO implements Serializable {
    /**
     * 建议项目主键
     */
    private Integer itemId;

    /**
     * 检验ID
     */
    private Integer inspectId;

    /**
     * 检验项目名称
     */
    private String name;

    /**
     * 病例号
     */
    private Integer registId;

    /**
     * 价格
     */
    private Double price;

    /**
     * 状态
     */
    private String status;

    /**
     * 检查结果
     */
    private String result;

    private static final long serialVersionUID = 1L;

    /**
     * 建议项目主键
     */
    public Integer getItemId() {
        return itemId;
    }

    /**
     * 建议项目主键
     */
    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    /**
     * 检验ID
     */
    public Integer getInspectId() {
        return inspectId;
    }

    /**
     * 检验ID
     */
    public void setInspectId(Integer inspectId) {
        this.inspectId = inspectId;
    }

    /**
     * 检验项目名称
     */
    public String getName() {
        return name;
    }

    /**
     * 检验项目名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 病例号
     */
    public Integer getRegistId() {
        return registId;
    }

    /**
     * 病例号
     */
    public void setRegistId(Integer registId) {
        this.registId = registId;
    }

    /**
     * 价格
     */
    public Double getPrice() {
        return price;
    }

    /**
     * 价格
     */
    public void setPrice(Double price) {
        this.price = price;
    }

    /**
     * 状态
     */
    public String getStatus() {
        return status;
    }

    /**
     * 状态
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 检查结果
     */
    public String getResult() {
        return result;
    }

    /**
     * 检查结果
     */
    public void setResult(String result) {
        this.result = result;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InspectApplyPO other = (InspectApplyPO) that;
        return (this.getItemId() == null ? other.getItemId() == null : this.getItemId().equals(other.getItemId()))
            && (this.getInspectId() == null ? other.getInspectId() == null : this.getInspectId().equals(other.getInspectId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getRegistId() == null ? other.getRegistId() == null : this.getRegistId().equals(other.getRegistId()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getResult() == null ? other.getResult() == null : this.getResult().equals(other.getResult()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getItemId() == null) ? 0 : getItemId().hashCode());
        result = prime * result + ((getInspectId() == null) ? 0 : getInspectId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getRegistId() == null) ? 0 : getRegistId().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", itemId=").append(itemId);
        sb.append(", inspectId=").append(inspectId);
        sb.append(", name=").append(name);
        sb.append(", registId=").append(registId);
        sb.append(", price=").append(price);
        sb.append(", status=").append(status);
        sb.append(", result=").append(result);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}